package com.suzus.aiService.service;

import com.suzus.aiService.pojo.dto.HospitalDTO;
import com.suzus.aiService.pojo.entity.Case;
import com.suzus.aiService.pojo.entity.HospitalDesc;
import com.suzus.aiService.pojo.entity.Medicine;
import com.suzus.aiService.pojo.entity.Message;
import com.suzus.aiService.pojo.vo.HospitalVO;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.util.List;

public interface AskService {
    /*
     * 通过百度大模型发出问题并返回答案
     * */
    List<String> askMedicine(String questions) throws Exception;
    /*
    * 识别图片并获取药品实体类
    * */
    Medicine getMedicineByPicture(byte[] path) throws Exception;

    /*
    * 通过传入一个大概名称获取药品信息
    * */
    Medicine getMedicineByName(String name) throws JsonProcessingException;

    Message getAdviceBySymptom(String symptom);

    HospitalDesc getHospitalByPicture(byte[] path) throws Exception;
    /*
    * 通过上传图片或者拍摄返回病例分析
    * */
    Case getSymptomBySheet(byte[] path) throws Exception;

    public List<String> askSheetWithThreeParts(String questions);

    List<HospitalVO> getHospitalByCityAndDept(HospitalDTO hosp);
}
